<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Gold Bach Conjecturer</title>
  <script>
function rightchange(char,n) {
    return (char.substr(-n)+char.substr(0,char.length-n));
}

console.log(rightchange("abcdefg",2));
  </script>
</head>
<body>
  
</body>
</html>